//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击间距中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
    public static void main(String[] args) {
        Student stu1=new Student();
        stu1.setId("1010101");
        stu1.setName("Tom");
        stu1.setGender("男");
        stu1.setAge(19);
        stu1.setSpeciality("信息管理与信息系统");
        stu1.ViewStudent();
        Student stu2=new Student("1010101","Jack","男",20,"计算机科学与技术");
        stu2.ViewStudent();
        Student stu3=new Student("1010101","Jack","男",20,"计算机科学与技术");
        Student stu4=stu2;
        System.out.println("stu2="+ stu2+",stu3="+stu3);
        System.out.println(stu2==stu3);//比较两个对象的地址是否相相等
        System.out.println(stu2.equals(stu3));//比较两个对象内容是否相等
        System.out.println(stu4==stu2);

    }
}